from rest_framework import viewsets

from .models import User
from .serializers import UserSerializer


class UserViewSet(viewsets.ModelViewSet):

    queryset = User.objects.all()
    serializer_class = UserSerializer

    def update(self, request, *args, **kwargs):
        print('update', request.body, args, kwargs)
        return super(UserViewSet, self).update(
            request, *args, **kwargs)
